Ubuntu 16.04中安装.NET Core 2 详解 第2页 您所在的位置:网站首页 linux dotnet publish Ubuntu 16.04中安装.NET Core 2 详解 第2页

Ubuntu 16.04中安装.NET Core 2 详解 第2页

#Ubuntu 16.04中安装.NET Core 2 详解 第2页| 来源: 网络整理| 查看: 265

  二、安装.net core2

  这个比较简单,参照官方的基本上没问题,参考网址:https://github.com/dotnet/core/blob/master/release-notes/download-archive.md 

  安装.NET Core SDK 2.0.2 with .NET Core 2.0.0

  安装成功之后,查看dotnet 信息

  查看dotnet自带的模板:dotnet new --list

  三、跑一个MVC模板

  1、新建一个工作目录

  2、新建一个MVC应用程序: dotnet new mvc -n test1   新建成功并跑一下程序,切换到程序根目录之后执行命令: dotnet run

  3、在浏览器键入 http://localhost:5000/ (大神说:Linux和win10共享网络)

  4、停止应用程序

  5、之后我们发布一下 dotnet publish -c release

  6、切换到“publish”目录,执行命:dotnet test1.dll

linux


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有